package it.softphone.cmc.shared.entity;


import java.util.Collections;
import java.util.List;

/**
 * 
 * @author bsorrentino
 *
 * @param <T>
 */
public class BaseResultSet<T> implements ResultSet<T> {

	java.util.List<T> result = Collections.emptyList();
	
	@Override
	public List<T> getResult() {
		return result;
	}

	@Override
	public void setResult(List<T> result) {
		if( result == null ) return;
		// MAKE A COPY
		this.result = new java.util.ArrayList<T>( result );
		
	}

}
